/**
 * @author - lhn
 * @version - 1.0.0
 * @description - 并发相关接口
 * @file - IUseConcurrent.ts
 * @datetime - 2025/2/28
 * @editor - lhn
 */


interface IUseConcurrent {
  /**
   * 并发执行任务 - useParallelTask
   * @param {Function[]} tasks - 执行任务的数组
   * @param {number} parallelCount - 最大并发量
   * @return {Promise<string>}
   * */
  parallelTask: (tasks: Function[], parallelCount: number) => void;
}

export type {
  IUseConcurrent
};